package com.arsn.myf.system.entity;

import com.arsn.myf.common.entity.BaseEntity;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import java.io.Serializable;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import com.baomidou.mybatisplus.annotation.TableId;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

/**
 * 菜单对象
 *
 * @author zhongrj
 * @date 2022-12-12 20:18:47
 */
@Data
@TableName("sys_menu")
@ApiModel(value = "Menu对象", description = "Menu对象")
public class Menu extends BaseEntity implements Serializable{

    private static final long serialVersionUID = 1L;

    /**
    * 菜单ID
    */
    @TableId(value = "id",type = IdType.ASSIGN_ID)
    @JsonSerialize(using = ToStringSerializer.class)
    @ApiModelProperty(value = "菜单ID")
    private Long id;

    /**
    * 菜单名称
    */
    @ApiModelProperty(value = "菜单名称")
    private String menuName;

    /**
    * 父菜单ID
    */
    @ApiModelProperty(value = "父菜单ID")
    private Long parentId;

    /**
    * 显示顺序
    */
    @ApiModelProperty(value = "显示顺序")
    private Integer sort;

    /**
    * 路由地址
    */
    @ApiModelProperty(value = "路由地址")
    private String path;

    /**
    * 组件路径
    */
    @ApiModelProperty(value = "组件路径")
    private String component;

    /**
    * 菜单类型（0目录 1菜单 2按钮）
    */
    @ApiModelProperty(value = "菜单类型（0目录 1菜单 2按钮）")
    private String menuType;

    /**
    * 菜单状态（0正常 1停用）
    */
    @ApiModelProperty(value = "菜单状态（0正常 1停用）")
    private String status;

    /**
    * 菜单图标
    */
    @ApiModelProperty(value = "菜单图标")
    private String icon;

    /**
    * 备注
    */
    @ApiModelProperty(value = "备注")
    private String remark;

    /**
    * 表达式
    */
    @ApiModelProperty(value = "表达式")
    private String expression;

}
